﻿@if (Request.IsAuthenticated)
{
    var user = (Aga.GestionDeArchivos.Domain.Entities.User)Session[Aga.GestionDeArchivos.Web.SessionKey.LoggedInUser];
    
    if (user == null || user.IsExternal)
    {
        Layout = "~/Views/Shared/_Layout.cshtml";
    }
    else
    {
        Layout = "~/Views/Shared/_InternalLayout.cshtml";
    }
}
else
{
    Layout = "~/Views/Shared/_Layout.cshtml";
}